<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        let stu = {
        stuno: 1,
            name: "张三",
            age: 18,
            sex: "男"
            show: function () {
                console.log(this.stuno + " " + this.name
                + " " + this.age + " " + this.sex);
            }
        };
       // stu.show();
       let stus = [
           {
               stuno: 1,
               name: "张三",
               age: 18,
               sex: "男"
           },
           {
               stuno: 2,
               name: "张三",
               age: 18,
               sex: "男"
           },
           {
               stuno: 3,
               name: "张三",
               age: 18,
               sex: "男"
           }
        ]
        for(let i = 0; i < stus.length; i++){
            let stu = stus[i];
            console.log(stu.stuno + " " + stu.name
            + " " + stu.age + " " + stu.sex);
        }
        let str = JSON.stringify(stus);
        console.log(str);
        let stus2 = JSON.parse(str);

    </script>
</head>
<body>

</body>
</html>